package com.wooophone.file.biz.impl;

import java.util.List;
import java.util.Map;

import com.wooophone.file.biz.FileEntityBiz;
import com.wooophone.file.biz.exception.CannotDeleteException;
import com.wooophone.file.dao.FileEntityDao;
import com.wooophone.file.entity.FileEntity;

public class FileEntityBizImpl implements FileEntityBiz {
	
	private FileEntityDao fileEntityDao;
	public void setFileEntityDao(FileEntityDao fileEntityDao) {
		this.fileEntityDao = fileEntityDao;
	}

	@Override
	public FileEntity save(FileEntity obj) {
		return fileEntityDao.save(obj);
	}

	@Override
	public int update(FileEntity obj) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(String id) throws CannotDeleteException {
		return fileEntityDao.delete(id);
	}

	@Override
	public FileEntity get(String id) {
		return fileEntityDao.get(id);
	}

	@Override
	public List<FileEntity> list() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<FileEntity> list(int offset, int limit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int count() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<FileEntity> find(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<FileEntity> find(Map<String, Object> parameter, int offset,
			int limit) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int count(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int count(String keyword) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<FileEntity> search(String keyword, int offset, int limit) {
		// TODO Auto-generated method stub
		return null;
	}

}
